gtk-demo: Minimally fix the sarch entry demo
authorMatthias Clasen <mclasen@redhat.com>
Sun, 3 Mar 2019 17:42:20 +0000 (12:42 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 3 Mar 2019 17:43:00 +0000 (12:43 -0500)
This was broken by the entry refactoring.

demos/gtk-demo/search_entry.c

index 9b1f67d9a4267f97e19e93f0e324d03de41b0cde..c234481052f03ae037376e94c3c330b025776d05 100644 (file)
@@ -246,7 +246,10 @@ do_search_entry (GtkWidget *do_widget)
       gtk_container_add (GTK_CONTAINER (vbox), hbox);
 
       /* Create our entry */
-      entry = gtk_search_entry_new ();
+      entry = gtk_entry_new ();
+      gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry),
+                                         GTK_ENTRY_ICON_PRIMARY,
+                                         "edit-find-symbolic");
       gtk_container_add (GTK_CONTAINER (hbox), entry);
 
       /* Create the find and cancel buttons */